package com.xdtech.sys.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;
import com.xdtech.sys.util.SysConstants;

/**
 * 
 * @author max.zheng
 * @create 2015-05-31 22:43:28
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="SYS_PARAMS")
public class Params extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="CODE")
	private String code;
	@Column(name="CODE_VALUE")
	private String codeValue;
	@Column(name="CODE_DESC")
	private String codeDesc;
	@Column(name="INIT_TO_APP")
	private String initToApp;

	public Params() {
		super();
	}
	
	public Params(String code, String codeValue, String codeDesc) {
		super();
		this.code = code;
		this.codeValue = codeValue;
		this.codeDesc = codeDesc;
		this.initToApp = SysConstants.NO;
	}
	
	

	public Params(String code, String codeValue, String codeDesc, String initToApp)
	{
		super();
		this.code = code;
		this.codeValue = codeValue;
		this.codeDesc = codeDesc;
		this.initToApp = initToApp;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getCode() {
		return code;
	}
	public void setCodeValue(String codeValue) {
		this.codeValue = codeValue;
	}
	public String getCodeValue() {
		return codeValue;
	}
	public void setCodeDesc(String codeDesc) {
		this.codeDesc = codeDesc;
	}
	public String getCodeDesc() {
		return codeDesc;
	}

	public String getInitToApp()
	{
		return initToApp;
	}

	public void setInitToApp(String initToApp)
	{
		this.initToApp = initToApp;
	}

	
}
